package ru.niir.goodfil.audit.domain;

import ru.niir.goodfil.audit.domain.enums.Crud;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

@Entity
public class GoodUIEvent extends Event {
    @Enumerated(EnumType.STRING)
    private Crud crud;

    @Column(length = 10)
    private String code;

    @Column(length = 50)
    private String name;

    @Column(length = 20)
    private String weight;

    @Column(length = 20)
    private String volume;

    public Crud getCrud() {
        return crud;
    }

    public void setCrud(Crud crud) {
        this.crud = crud;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    @Override
    public String toString() {
        return "GoodUIEvent{" +
                "crud=" + crud +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", weight='" + weight + '\'' +
                ", volume='" + volume + '\'' +
                '}';
    }
}
